package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.Assessment;
import com.zhijian.medical.entity.vo.request.AssessmentSearchVo;
import com.zhijian.medical.entity.vo.response.AssessmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AssessmentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Assessment record);

    int insertSelective(Assessment record);

    Assessment selectByPrimaryKey(Long id);

    /**
     * 根据状态查找
     *
     * @param status
     * @return
     */
    List<Assessment> selectByStatus(Byte status);

    int updateByPrimaryKeySelective(Assessment record);

    int updateByPrimaryKey(Assessment record);

    int count(AssessmentSearchVo assessmentSearchVo);

    List<AssessmentVo> selectList(AssessmentSearchVo assessmentSearchVo);

    AssessmentVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<Assessment> entities);

    /**
     * 根据学习班ID查询
     *
     * @param studyClassId
     * @return
     */
    Assessment selectByStudyClassId(Long studyClassId);
}